home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 3
/
Amiga Tools 3.iso
/
grafik
/
raytracing
/
rayshade-4.0.6.3
/
rayfiles
/
rsdefs
/
docs
/
macros.doc
< prev
next >
Wrap
Text File
|
1994-08-09
|
2KB
|
71 lines
Macros
======
The following macros are defined:
RSMdull(red,green,blue,bright)
This inserts surface information into your scene to make the
correspondingly colored dull (as opposed to shiny) surface.
/* Creates a dull red sphere of raidus 8 centered at origin */
sphere RSMdull(0.6, 0.0, 0.0, 0.5) 8.0 0.0 0.0 0.0
RSMshiny(red,green,blue,bright,specpow)
This inserts surface information into your scene to make the
correspondingly colored shiny surface.
/* Creates a shiny red sphere of radius 8 centered at origin */
sphere RSMshiny(0.6, 0.0, 0.0, 0.5, 32.0) 8.0 0.0 0.0 0.0
RSMscale(x)
This inserts scale information into your scene to scale the
given object (x) in all directions.
/* Scales a sphere of radius 1 at origin to radius 8 */
sphere 1.0 0.0 0.0 0.0
RSMscale(8.0)
RSMsimplefbmtex()
This inserts texture information into your scene to create
a simple fbm texture on the given object.
/* Applies simple fbm texture to a sphere of radius 8 at origin */
sphere 8.0 0.0 0.0 0.0
texture RSMsimplefbmtex()
RSMsimpleskytex()
This inserts texture information into your scene to create
a simple sky texture on the given object.
/* Applies simple sky texture to a sphere of radius 8 at origin */
sphere 8.0 0.0 0.0 0.0
texture RSMsimpleskytex()
RSMbluescreen()
Sets the background color to be the standard "bluescreen" used
for overlaying pictures in film. Not only will it help with matting,
but it's very good for showing where the background color is leaking
through your objects.
/* Sets background color to blue screen */
RSMbluescreen()
RSMdaysky()
Sets the background color to a light blue color.
/* Sets background color to a daytime sky color */
RSMdaysky()
RSMchesspiece(row,col,sc)
Places (translates) a chess piece to the specified row and column
of a chess board that is "sc" units on a side centered at the origin in the
x,y plane. (See the chessboard objects below and the checkers.ray example.)
/* Places a flattened sphere at row 4, column 6 on a 5x5 board */
RSPchessboard(,RSStest_white(),RSStest_burgundy(),5) /* see prims */
sphere RSSemeralddark() .25 0 0 0
scale 1 1 .1
translate 0 0 .025
RSMchesspiece(4,6,5)